-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combined FSTree versioning and log #3031
Conversation
825eb5f
to
dfa8068
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3031 +/- ##
==========================================
- Coverage 22.64% 22.64% -0.01%
==========================================
Files 791 791
Lines 58618 58615 -3
==========================================
- Hits 13274 13271 -3
Misses 44447 44447
Partials 897 897 ☔ View full report in Codecov by Sentry. |
6c3cef6
to
252fa85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicts.
|
||
// combinedPrefix is the prefix that Protobuf message can't start with, | ||
// it reads as "field number 15 of type 7", but there is no type 7 in | ||
// the system (and we usually don't have 15 fields). ZSTD magic is also | ||
// different. | ||
combinedPrefix = 0x7f | ||
|
||
// combinedLenSize is sizeof(uint32), length is a serialized 32-bit BE integer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// combinedLenSize is sizeof(uint32), length is a serialized 32-bit BE integer. | |
// combinedLenSize is sizeof(uint32), length of a serialized 32-bit BE integer. |
no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, to be fixed.
Our real storages have nothing to report. Signed-off-by: Roman Khimov <[email protected]>
In case they want to log something. Signed-off-by: Roman Khimov <[email protected]>
It is important to know which type of the writer is used, they differ in characteristics. Signed-off-by: Roman Khimov <[email protected]>
Signed-off-by: Roman Khimov <[email protected]>
Yeah, lengthy names, but it's better for future extensions. Signed-off-by: Roman Khimov <[email protected]>
We may want to have something more complex in future versions (like #2925 or others) and we don't have a lot of safe bytes to use in place of 0x7F. So let's have a byte for format version. This is an incompatible change, but this code was never in production. Signed-off-by: Roman Khimov <[email protected]>
When we already know that the file is combined (seen the prefix at least once, isCombined is true) we expect all subsequent entries to be proper combined ones as well. If they're not (wrong prefix) --- something is wrong with the file and returning it as is won't help. Signed-off-by: Roman Khimov <[email protected]>
Signed-off-by: Roman Khimov <[email protected]>
252fa85
to
b79dcfa
Compare
No description provided.